//Copyright (C) 2009 Ron Coleman. Contact: ronncoleman@gmail.com
//
//This library is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either
//version 3 of the License, or (at your option) any later version.
//
//This library is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with this library; if not, write to the Free Software
//Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

package org.workplicity.android.cia.model;

import java.io.Serializable;

import org.workplicity.android.cia.util.WorkDate;

/**
 * This class is a container of comments.
 * @author Ron Coleman
 */
public class Comment implements Serializable {

	private static final long serialVersionUID = 2685322712752417385L;

	private String text = "NONE";

    private WorkDate date = new WorkDate(System.currentTimeMillis());

    private Integer userId = -1;

    /**
     * Constructor
     */
    public Comment() {

    }

    /**
     * Gets the date.
     * @return Date
     */
    public WorkDate getDate() {
        return date;
    }

    /**
     * Sets the date.
     * @param date Date
     */
    public void setDate(WorkDate date) {
        this.date = date;
    }

    /**
     * Gets the comment text.
     * @return text
     */
    public String getText() {
        return text;
    }

    /**
     * Sets the comment text.
     * @param text Text
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * Gets the user id.
     * @return User id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * Sets the user id.
     * @param userId User id.
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
